package com.cipe.cmrs.exception;

public class CipeprojectException extends Exception {
	private static final long serialVersionUID = 8102762496349437137L;

	public static final int UNSPECIFIED_ERROR = 1000;
	public static final int DUPLICATE_PROJECT_ID_FOUND = 1001;
	
	private int errorCode = UNSPECIFIED_ERROR;
	
	public CipeprojectException() {
		super();
	}
	
	public CipeprojectException(int errorCode, String msg) {
		super(msg);
		this.errorCode = errorCode;
	}
	
	public CipeprojectException(int errorCode, Exception ex) {
		super(ex);
		this.errorCode = errorCode;
	}	
}
